home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / util / libs / prooflibrary10.lha / prooflibrary / examples / create / scale.h < prev    next >
C/C++ Source or Header  |  1999-01-30  |  275b  |  17 lines

  1. #define EPSILON 0.0001
  2.  
  3. typedef enum
  4. {
  5.     MinifyX_MinifyY,
  6.     MinifyX_MagnifyY,
  7.     MagnifyX_MinifyY,
  8.     MagnifyX_MagnifyY
  9. } ScaleType;
  10.  
  11. struct PixelRegion
  12. {
  13.     UBYTE *buf; // Image buffer
  14.     int w, h; // Buffer width and height
  15.     int bytes; // Width of one pixel in bytes (normally 3)
  16. };
  17.